package com.avfh.netcard.model;

import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 充值套餐表
 * </p>
 *
 * @author wuhui
 * @since 2017-06-26
 */
@TableName("bd_package")
public class Package extends Model<Package> {

    private static final long serialVersionUID = 1L;

    @TableId("package_id")
	private Long packageId;
    /**
     * 套餐名称
     */
	@TableField("package_name")
	private String packageName;
    /**
     * 原价
     */
	@TableField("orig_price")
	private Double origPrice;
    /**
     * 现价
     */
	@TableField("current_price")
	private Double currentPrice;
    /**
     * 折扣
     */
	private Double discount;
	@TableField("created_at")
	private Date createdAt;
	@TableField("updated_at")
	private Date updatedAt;
	private String desc;


	public Long getPackageId() {
		return packageId;
	}

	public Package setPackageId(Long packageId) {
		this.packageId = packageId;
		return this;
	}

	public String getPackageName() {
		return packageName;
	}

	public Package setPackageName(String packageName) {
		this.packageName = packageName;
		return this;
	}

	public Double getOrigPrice() {
		return origPrice;
	}

	public Package setOrigPrice(Double origPrice) {
		this.origPrice = origPrice;
		return this;
	}

	public Double getCurrentPrice() {
		return currentPrice;
	}

	public Package setCurrentPrice(Double currentPrice) {
		this.currentPrice = currentPrice;
		return this;
	}

	public Double getDiscount() {
		return discount;
	}

	public Package setDiscount(Double discount) {
		this.discount = discount;
		return this;
	}

	public Date getCreatedAt() {
		return createdAt;
	}

	public Package setCreatedAt(Date createdAt) {
		this.createdAt = createdAt;
		return this;
	}

	public Date getUpdatedAt() {
		return updatedAt;
	}

	public Package setUpdatedAt(Date updatedAt) {
		this.updatedAt = updatedAt;
		return this;
	}

	public String getDesc() {
		return desc;
	}

	public Package setDesc(String desc) {
		this.desc = desc;
		return this;
	}

	public static final String PACKAGE_ID = "package_id";

	public static final String PACKAGE_NAME = "package_name";

	public static final String ORIG_PRICE = "orig_price";

	public static final String CURRENT_PRICE = "current_price";

	public static final String DISCOUNT = "discount";

	public static final String CREATED_AT = "created_at";

	public static final String UPDATED_AT = "updated_at";

	public static final String DESC = "desc";

	@Override
	protected Serializable pkVal() {
		return this.packageId;
	}

}
